<?php

class DefaultController extends CController {
/**
 * The default action if no route is specified
 */
    public function actionIndex() {
    //$this->render('index');
        $this->redirect(array('authItem/assign'));
    }

    /**
     * @return array action filters
     */
    public function filters() {
        return array(
            'accessControl', // perform access control for CRUD operations
        );
    }

    /**
     * Specifies the access control rules.
     * This method is used by the 'accessControl' filter.
     * @return array access control rules
     */
    public function accessRules() {
        return array(
            array('allow', // allow admin user to perform 'admin' action
                  'actions'=>array('index'),
                  'roles'=>array('super_admin')
            ),
            array('deny',  // deny all users
                'users'=>array('*')
            )
        );
    }
 }